package com.unionpay.mpds.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.unionpay.mpds.dao.MenuDao;
import com.unionpay.mpds.model.Menu;

/**
 * 
 * @description 自动生成 daoImpl
 *
 * @author wucheng
 */
@Repository
public class MenuDaoImpl extends BaseDaoImpl<Menu, String> implements MenuDao {

	@Override
	public List<Menu> findMenusByRole(String roleId) {
		String hql = "select o.menu from Permit o where o.role.roleId=?";
		return this.findAllByHQL(hql, roleId);
	}

}

